home *** CD-ROM | disk | FTP | other *** search
- 150
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Shell
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baShell executes a file.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baShell( Operation, Filename, Args, WorkDir, State )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string, string, string, string.
- --- RECORDSEPARATOR ---
- Operation is the action to perform on the file.
- --- RECORDSEPARATOR ---
- Filename is the name of the file the shortcut will point to.
- --- RECORDSEPARATOR ---
- Args is any command line arguments to use.
- --- RECORDSEPARATOR ---
- WorkDir is the working directory to set.
- --- RECORDSEPARATOR ---
- State is the state to start the program in.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns a number larger than 32 if successful.
- --- RECORDSEPARATOR ---
- Returns an error code. If the return is less than 32 than an error occurred.
- --- RECORDSEPARATOR ---
- Possible errors include:
- --- RECORDSEPARATOR ---
- 0
- --- RECORDSEPARATOR ---
- System was out of memory.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- File was not found.
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Path was not found.
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- Sharing or network-protection error.
- --- RECORDSEPARATOR ---
- 6
- --- RECORDSEPARATOR ---
- Library required separate data segments for each task.
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- There was insufficient memory to start the application.
- --- RECORDSEPARATOR ---
- 10
- --- RECORDSEPARATOR ---
- Windows version was incorrect.
- --- RECORDSEPARATOR ---
- 11
- --- RECORDSEPARATOR ---
- Executable file was invalid. Either it was
- --- RECORDSEPARATOR ---
- not a Windows application or there was an
- --- RECORDSEPARATOR ---
- error in the .EXE image.
- --- RECORDSEPARATOR ---
- 12
- --- RECORDSEPARATOR ---
- Application was designed for a different operating system.
- --- RECORDSEPARATOR ---
- 13
- --- RECORDSEPARATOR ---
- Application was designed for MS-DOS 4.0.
- --- RECORDSEPARATOR ---
- 14
- --- RECORDSEPARATOR ---
- Type of executable file was unknown.
- --- RECORDSEPARATOR ---
- 15
- --- RECORDSEPARATOR ---
- Attempt was made to load a real
- --- RECORDSEPARATOR ---
- -mode application (developed for an earlier version
- --- RECORDSEPARATOR ---
- of Windows).
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- Attempt was made to load a second instance of an executable file containing multiple
- --- RECORDSEPARATOR ---
- data segments that were not marked read-only.
- --- RECORDSEPARATOR ---
- 19
- --- RECORDSEPARATOR ---
- Attempt was made to load a compressed executable file. The file must be
- --- RECORDSEPARATOR ---
- decompressed before it can be loaded.
- --- RECORDSEPARATOR ---
- 20
- --- RECORDSEPARATOR ---
- Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this
- --- RECORDSEPARATOR ---
- application was corrupt.
- --- RECORDSEPARATOR ---
- 21
- --- RECORDSEPARATOR ---
- Application requires 32-bit extensions.
- --- RECORDSEPARATOR ---
- 26
- --- RECORDSEPARATOR ---
- A sharing violation occurred.
- --- RECORDSEPARATOR ---
- 27
- --- RECORDSEPARATOR ---
- The filename association is incomplete or invalid.
- --- RECORDSEPARATOR ---
- 29
- --- RECORDSEPARATOR ---
- The DDE transaction failed.
- --- RECORDSEPARATOR ---
- 30
- --- RECORDSEPARATOR ---
- The DDE transaction could not be completed because other DDE transactions were
- --- RECORDSEPARATOR ---
- being processed.
- --- RECORDSEPARATOR ---
- 31
- --- RECORDSEPARATOR ---
- There is no application associated with the given filename
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set ok = baShell( "open", "c:\windows\notepad.exe", "myfile.txt" , "", "normal" )
- --- RECORDSEPARATOR ---
- set ok = baShell( "edit", "myfile.htm" , "", "", "normal" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- ok := baShell( "open", "myfile.doc", "" , "", "normal" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function can execute either a document or a program file. If it opens a
- --- RECORDSEPARATOR ---
- document file, the Args parameter is ignored. The Operation can be any action that
- --- RECORDSEPARATOR ---
- is registered with the document type, most commonly 'open' and 'print'. If the
- --- RECORDSEPARATOR ---
- specified action is not registered to the document, the function will return 31. Only
- --- RECORDSEPARATOR ---
- the 'open' action works on program files.